#include "search.h"
#include "ui_search.h"

Search::Search(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Search)
{
    ui->setupUi(this);
    Init();
}

Search::~Search()
{
    delete ui;
}

void Search::Init()
{
    connect(ui->search_str,SIGNAL(returnPressed()),this,SLOT(End_Input()));
}


void Search::End_Input()
{
    emit EndInput(ui->search_str->text());
    close();
}
